﻿using System;

namespace EasyIot.WinApp
{
    // 页面跳转接口
    public interface IBaseRedirectEvent
    {
        event EventHandler<BaseRedirectArgs> eventShowForm;
    }

    public class BaseRedirectArgs : EventArgs
    {
        private FormCase m_eFormCase;
        private RedirectType m_eRedirectType;
        private object m_oParam;

        public BaseRedirectArgs(FormCase eCase, RedirectType eRedirect = RedirectType.Redirect_Next, object oParam = null)
        {
            this.m_eFormCase = eCase;
            this.m_eRedirectType = eRedirect;

            this.m_oParam = oParam;
        }

        public FormCase eFormCase
        {
            get { return m_eFormCase; }
        }

        public RedirectType eRedirectType
        {
            get { return m_eRedirectType; }
        }

        public object oParam
        {
            get { return m_oParam; }
        }
    }
}
